package com.dmgis.hndz.controller;

import com.dmgis.hndz.common.utils.SysResult;
import com.dmgis.hndz.service.Qxbc01aService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 预警信息
 *
 * @author pengdongdong
 * @description public
 * @date 2024-11-11
 */
@CrossOrigin
@RestController
@RequestMapping(value = "/qxbc01a")
public class Qxbc01aController {

    @Autowired
    private Qxbc01aService qxbc01aService;


    /**
     * 查询 分页查询
     *
     * @author pengdongdong
     * @date 2024/11/11
     **/
    @GetMapping("/list")
    public SysResult selectSMSRecordManagementList(Integer pageNum, Integer pageSize,
                                                   String name, String adminCode) {
        return SysResult.success(qxbc01aService
                .selectQxbc01aList(pageNum, pageSize, name, adminCode));
    }


    /**
     * 近24小时气象预警列表
     *
     *
     **/
    @GetMapping("/past24HoursList")
    public SysResult past24HoursList(String name, String adminCode) {
        return SysResult.success(qxbc01aService
                .past24HoursList(name, adminCode));
    }

}